package com.common.constant;

/**
 * @Author Rookie-6688
 * @Description
 * @Create 2021-03-23 20:57
 */
public class ProductConstant {

    public enum AttrTypeEnum{
        ATTR_BASE(1,"基本属性"),
        ATTR_SALE(0,"销售属性");

        private int code;
        private String name;

        AttrTypeEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    public enum SpuStatusEnum{
        NEW_SPU(0,"新建"),
        UP_SPU(1,"上架"),
        DOWN_SPU(2,"下架");
        private int code;
        private String name;

        SpuStatusEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }
}
